package com.wsg.dep.demo;

import com.lmax.disruptor.EventFactory;

public class LongEventFactory implements EventFactory<LongEvent> {
    private long time = System.currentTimeMillis();

    @Override
    public LongEvent newInstance() {
        LongEvent longEvent = new LongEvent();
        longEvent.setTime(time);
        return longEvent;
    }
}